package com.cel.dependency_injection;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp01 {
    public static void main(String[] args) {
        ApplicationContext context =
                new ClassPathXmlApplicationContext("cel/defining_injection01.xml");
        TextEditor01 te = (TextEditor01) context.getBean("textEditor01");
        te.spellCheck01();
    }
}